home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / scoobycastillotenebroso.swf / scripts / DefineButton2_1416 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2007-10-01  |  480b  |  19 lines

  1. on(release, releaseOutside){
  2.    if(this.hitTest(_root.environnement1.ghost_chest.hit_chest))
  3.    {
  4.       this.swapDepths(_parent.swap);
  5.       _root.environnement1.ghost_chest.gotoAndPlay("locked");
  6.       stopDrag();
  7.       set("_root.controler:drag_this",false);
  8.       this._visible = false;
  9.    }
  10.    else
  11.    {
  12.       this.swapDepths(_parent.swap);
  13.       stopDrag();
  14.       set("_root.controler:drag_this",false);
  15.       this._x = 153.7;
  16.       this._y = -5.85;
  17.    }
  18. }
  19.